import request from '@/utils/request'

// 查询个税计算列表
export function listGsjs(query) {
  return request({
    url: '/hr/gsjs/list',
    method: 'get',
    params: query
  })
}

// 查询个税计算详细
export function getGsjs(id) {
  return request({
    url: '/hr/gsjs/' + id,
    method: 'get'
  })
}

// 新增个税计算
export function addGsjs(data) {
  return request({
    url: '/hr/gsjs',
    method: 'post',
    data: data
  })
}

// 修改个税计算
export function updateGsjs(data) {
  return request({
    url: '/hr/gsjs',
    method: 'put',
    data: data
  })
}

// 删除个税计算
export function delGsjs(id) {
  return request({
    url: '/hr/gsjs/' + id,
    method: 'delete'
  })
}
